package com.sinothk.fc.storeMaterial.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商品物料表
 * @Author: Liangyt
 * @Date: 2022-09-23
 * @Version: V1.0
 */
@Data
@TableName("fc_store_material")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "fc_goods_material对象", description = "商品物料表")
public class StoreMaterialEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 编号
     */
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String goodsNo;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String goodsName;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String goodsRemark;
    /**
     * 大类id
     */
    @Excel(name = "大类id", width = 15)
    @ApiModelProperty(value = "大类id")
    private String goodsTypeMainId;
    /**
     * 大类
     */
    @Excel(name = "大类", width = 15)
    @ApiModelProperty(value = "大类")
    private String goodsTypeMain;
    /**
     * 小类id
     */
    @Excel(name = "小类id", width = 15)
    @ApiModelProperty(value = "小类id")
    private String goodsTypeSubId;
    /**
     * 小类
     */
    @Excel(name = "小类", width = 15)
    @ApiModelProperty(value = "小类")
    private String goodsTypeSub;
    /**
     * 成本单价
     */
    @Excel(name = "成本单价", width = 15)
    @ApiModelProperty(value = "成本单价")
    private Integer goodsInPrice;
    /**
     * 库存量
     */
    @Excel(name = "库存量", width = 15)
    @ApiModelProperty(value = "库存量")
    private Integer stockNum;
    /**
     * 库存提醒值
     */
    @Excel(name = "库存提醒值", width = 15)
    @ApiModelProperty(value = "库存提醒值")
    private Integer stockTipNum;
    /**
     * 补货量
     */
    @ApiModelProperty(value = "补货量")
    @TableField(exist = false)
    private Integer stockInputNum;
    /**
     * 订单小计
     */
    @Excel(name = "订单小计", width = 15)
    @ApiModelProperty(value = "订单小计")
    private Integer goodsAllPrice;
    /**
     * 商品单位
     */
    @Excel(name = "商品单位", width = 15)
    @ApiModelProperty(value = "商品单位")
    private String goodsUnit;
    /**
     * 封面url
     */
    @Excel(name = "封面url", width = 15)
    @ApiModelProperty(value = "封面url")
    private String goodsCover;
    /**
     * 产品图片
     */
    @Excel(name = "产品图片", width = 15)
    @ApiModelProperty(value = "产品图片")
    private String goodsUrl;
    /**
     * 卖家ID
     */
    @Excel(name = "卖家ID", width = 15)
    @ApiModelProperty(value = "卖家ID")
    private String sellerId;
    /**
     * 卖家名称
     */
    @Excel(name = "卖家名称", width = 15)
    @ApiModelProperty(value = "卖家名称")
    private String sellerName;
    /**
     * 卖家名称
     */
    @Excel(name = "卖家名称", width = 15)
    @ApiModelProperty(value = "卖家名称")
    private String sellerPhone;
    /**
     * 卖家logo
     */
    @Excel(name = "卖家logo", width = 15)
    @ApiModelProperty(value = "卖家logo")
    private String sellerLogo;
    /**
     * 状态：0有库存1无库存
     */
    @Excel(name = "状态：0有库存1无库存", width = 15)
    @ApiModelProperty(value = "状态：0有库存1无库存")
    private Integer state;
    /**
     * 商铺ID
     */
    @Excel(name = "商铺ID", width = 15)
    @ApiModelProperty(value = "商铺ID")
    private String storeId;
    /**
     * 产品厂家
     */
    @Excel(name = "产品厂家", width = 15)
    @ApiModelProperty(value = "产品厂家")
    private String cpCj;
    /**
     * 产品原材料
     */
    @Excel(name = "产品原材料", width = 15)
    @ApiModelProperty(value = "产品原材料")
    private String cpCl;
    /**
     * 产品等级
     */
    @Excel(name = "产品等级", width = 15)
    @ApiModelProperty(value = "产品等级")
    private String cpDj;
    /**
     * 产品执行标准
     */
    @Excel(name = "产品执行标准", width = 15)
    @ApiModelProperty(value = "产品执行标准")
    private String cpBz;
    /**
     * 生产日期
     */
    @Excel(name = "生产日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生产日期")
    private Date cpScrq;
    /**
     * 保质期
     */
    @Excel(name = "保质期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "保质期")
    private Date cpBzq;
    /**
     * 净含量
     */
    @Excel(name = "净含量", width = 15)
    @ApiModelProperty(value = "净含量")
    private String cpJhl;
    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String cpGg;
    /**
     * 厂址
     */
    @Excel(name = "厂址", width = 15)
    @ApiModelProperty(value = "厂址")
    private String cpCz;
    /**
     * 许可证号
     */
    @Excel(name = "许可证号", width = 15)
    @ApiModelProperty(value = "许可证号")
    private String cpXkzh;
    /**
     * 厂家电话
     */
    @Excel(name = "厂家电话", width = 15)
    @ApiModelProperty(value = "厂家电话")
    private String cpCjdh;
    /**
     * 邮编
     */
    @Excel(name = "邮编", width = 15)
    @ApiModelProperty(value = "邮编")
    private String cpYb;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 所属部门
     */
    @Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    private String orgCode;

    /**状态：0未支付1已支付2不需支付*/
    @TableField(exist = false)
    @ApiModelProperty(value = "状态：0未支付1已支付2不需支付")
    private Integer hasPay;
}
